package com.example.blog.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.security.SecureRandom;
import java.util.Date;
import java.util.List;

@Data
public class CommentVo {
    //分布式id比较长  防止前端精度丢失 将id转换为String
    private String name;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    private String headImg;
    private String comment;
    private Date time;
    private Long commentNum=8L;
    private Long like=10L;
    private Boolean inputShow=false;

    private List<CommentReply> reply;
}
